<?php if(isset($pay_ways) and $pay_ways){
    foreach($pay_ways as $pay_way){ ?>
        <option value="<?php echo isset($pay_way['payways_id'])?$pay_way['payways_id']:0 ?>">
            <?php echo isset($pay_way['paywayname'])?$pay_way['paywayname']:'' ?>
        </option>
    <?php }
} ?>
